import type { RouteRecordRaw } from 'vue-router'

export const basicRouteList: RouteRecordRaw[] = [
  {
    path: '/login',
    meta: {
      title: '登录',
      noAuth: true
    },
    component: () => import(/* webpackChunkName: "login" */ '@/views/pages/login.vue')
  },
  {
    path: '/signin-oidc',
    name: 'signin-redirect',
    component: () =>
      import(/* webpackChunkName: "oidc-redirect" */ '@/views/pages/oidc-redirect.vue'),
    meta: {
      title: '登录重定向',
      noAuth: true
    }
  },
  {
    path: '/register',
    meta: {
      title: '注册',
      noAuth: true
    },
    component: () => import(/* webpackChunkName: "register" */ '@/views/pages/register.vue')
  },
  {
    path: '/reset-pwd',
    meta: {
      title: '重置密码',
      noAuth: true
    },
    component: () => import(/* webpackChunkName: "reset-pwd" */ '@/views/pages/reset-pwd.vue')
  },
  {
    path: '/403',
    meta: {
      title: '没有权限',
      noAuth: true
    },
    component: () => import(/* webpackChunkName: "403" */ '@/views/pages/403.vue')
  },
  {
    path: '/404',
    meta: {
      title: '找不到页面',
      noAuth: true
    },
    component: () => import(/* webpackChunkName: "404" */ '@/views/pages/404.vue')
  },
  { path: '/:path(.*)', redirect: '/404' }
]
